import request from "@/utils/request"

export const postDynamic = data =>{
  return request({
    method:'POST',
    url:'/dynamic',
    data
  })
}

export const postAddDynamic = data =>{
  return request({
    method:'POST',
    url:'/dynamic/add',
    data
  })
}

export const getDynamicID = params =>{
  return request({
    method:'GET',
    url:'/dynamic/id',
    params
  })
}

export const postUpdateDynamic = data =>{
  return request({
    method:'POST',
    url:'/dynamic/update',
    data
  })
}

export const postDeleteDynamic= data =>{
  return request({
    method:'POST',
    url:'/dynamic/delete',
    data
  })
}

export const postAddImg = data =>{
  return request({
    method:'POST',
    url:'/dynamic/img',
    data
  })
}